From a7dce8960cae2f8bca0cafe52adb039f0df4d8b6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 4 Feb 2011 18:46:00 +0000 Subject: [PATCH] libxl: actually print an error when execve (in libxl__exec) fails The header comment says libxl__exec logs errors. So it should do so. Signed-off-by: Ian Jackson Acked-by: Stefano Stabellini Committed-by: Ian Jackson --- tools/libxl/libxl_exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index 6c212209f3..e770fd3e09 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -55,6 +55,8 @@ void libxl__exec(int stdinfd, int stdoutfd, int stderrfd, const char *arg0, * to assume they got DFL. */ execvp(arg0, args); + + fprintf(stderr, "libxl: cannot execute %s: %s\n", arg0, strerror(errno)); _exit(-1); } -- 2.30.2